<?php 
require_once("includes/functions.php");
require_once("includes/session.php"); 
ensure_logged_in("public");
generate_header("public", "New User");
?>
      <div id="single_main_block">
	<h2>Apply for a new user account today!</h2>
	<p> We are delighted to see you interested in becoming a valuable member of our bank. If you like, you can apply for a new account and complete the process by visiting one ou our local offices. 
	</p>
	<form id="new_user_form" method="post" action="">

	    <fieldset>
	      <legend>Personal Information</legend>
	      <ul>
		<li><label for="f_name">First Name:</label>
		  <input type="text" name="user_fname" size="20" id="f_name"/>
		</li>
		<li><label for="m_name">Middle Initial:</label>
		  <input type="text" name="user_mname" size="1" id="m_name" maxlength="1"/>
		  <span class="form_desc optional">Optional</span>
		</li>
		<li><label for="l_name">Last Name:</label>
		  <input type="text" name="user_lname" size="30" id="l_name" maxlength="30"/>
		</li>
		<li><label for="dob">Date of Birth:</label>
		  <input type="text" name="user_dob" size="8" id="dob" maxlength="1"/>
		  <span class="form_desc">(mm/dd/yy)</span>
		</li>
	      </ul>
	    </fieldset>

	    <fieldset>
	      <legend>Address Information</legend>
	      <ul>
		<li><label for="st_add_1">Street address (line 1):</label>
		  <input type="text" name="user_sadd_1" size="30" id="st_add_1"/>
		</li>
		<li><label for="st_add_2">Street address (line 2):</label>
		  <input type="text" name="user_sadd_2" size="30"
			 id="st_add_2"/>
		  <span class="form_desc optional">Optional</span>
		</li>
		<li><label for="st_add_3">Street address (line 3):</label>
		  <input type="text" name="user_sadd_3" size="30"
			 id="st_add_3"/>
		  <span class="form_desc optional">Optional</span>
		</li>
	      </ul>
	    </fieldset>
	    
	    <fieldset>
	      <legend>Account Information</legend>
	      <ul>
		<li><label for="acc_type">Desired Account type:</label>
		  <select name="ac_type" id="acc_type">
		    <option>Checking Account</option>
		    <option>Savings Account</option>
		    <option>Credit Account</option>
		  </select>
		</li>
		<li><label for="e_addr">E-mail address on account:</label>
		  <input type="text" name="user_email_add" id="e_addr"
		  size="40" />
		</li>

	      </ul>
	    </fieldset>


	    <fieldset>
	      <legend>Login Information</legend>
	      <ul>
		<li><label for="login_username">Username: </label>
		  <input type="text" id="login_username" name="userid"
			 size="20" />
		  <span class="form-desc">Please enter your desired username (Not more
		    than 20 chars.)</span></li>
		<li><label for="login_password">Password: </label>
		  <input type="password" id="login_password" name="userpass"
			 size="20" />
		  <span class="form-desc">Please enter your password.(Not more
		    than 20 chars.)</span></li>
		<li><label for="login_password_2">Password (re-enter): </label>
		  <input type="password" id="login_password_2" name="userpass2"
			 size="20" />
		  <span class="form-desc">Please re-enter your password.</span></li>
	      </ul>
	    </fieldset>

	    <p><input type="submit" value="Submit Information"/>
	    <input type="reset" value="Start Over"/></p>

	</form>
      </div>

<?php
	  include("includes/footer.php");
?>
